package com.yyfax.ph.common.imageselector.bean;
/***
 * Title: Image
 *  Description:  
 *  Company: YYLending(YouJingPuHui)
 * @author XiongYuFeng
 * date 2016年9月26日 下午4:22:05
 */
public class Image {
	public String path;
	public String name;
	public long time;
	public long length;

	public Image(String path, String name, long time, long length) {
		this.path = path;
		this.name = name;
		this.time = time;
		this.length = length;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o)
			return true;
		if (o == null || getClass() != o.getClass())
			return false;

		Image image = (Image) o;

		return path != null ? path.equals(image.path) : image.path == null;

	}

	@Override
	public int hashCode() {
		return path != null ? path.hashCode() : 0;
	}

	@Override
	public String toString() {
		return "Image{" +
				"path='" + path + '\'' +
				", name='" + name + '\'' +
				", time=" + time +
				", length=" + length +
				'}';
	}
}
